import request from "@/utils/axios";
import { URL_API } from "@/utils/mUtils";
const base = URL_API();
//审核列表接口
export function InformationList(params) {
  return request({
    url: `${base}/api/news/information/list`,
    method: "post",
    data: params,
  });
}
//审核列表接口
export function InformationCreate(params) {
  return request({
    url: `${base}/api/news/information/create`,
    method: "post",
    data: params,
  });
}
//审核列表接口
export function InformationDetail(params) {
    return request({
      url: `${base}/api/news/information/detail`,
      method: "post",
      data: params,
    });
}
//审核列表接口
export function InformationUpdate(params) {
    return request({
      url: `${base}/api/news/information/update`,
      method: "post",
      data: params,
    });
}
//删除资讯
export function InformationDelete(params) {
  return request({
    url: `${base}/api/news/information/delete`,
    method: "post",
    data: params,
  });
}
export function DeviceOrderList(params) {
  return request({
    url: `${base}/api/app/device/order/list`,
    method: "post",
    data: params,
  });
}
export function DeviceOrderDetail(params) {
  return request({
    url: `${base}/api/app/device/order/detail`,
    method: "post",
    data: params,
  });
}
// 设备租赁修改
export function DeviceOrderUpdate(params) {
  return request({
    url: `${base}/api/app/device/order/update`,
    method: "post",
    data: params,
  });
}
// 设备租赁删除
export function DeviceOrderDelete(params) {
  return request({
    url: `${base}/api/app/device/order/delete`,
    method: "post",
    data: params,
  });
}
// 设备租赁导出
export function DeviceOrderExport(params) {
  return request({
    url: `${base}/api/app/device/order/list/export`,
    method: "post",
    data: params,
  });
}
// 投保列表
export function InsureList(params) {
  return request({
    url: `${base}/api/app/insure/list`,
    method: "post",
    data: params,
  });
}
// 投保详情
export function InsureDetail(params) {
  return request({
    url: `${base}/api/app/insure/detail`,
    method: "post",
    data: params,
  });
}
// 投保删除
export function InsureDelete(params) {
  return request({
    url: `${base}/api/app/insure/delete`,
    method: "post",
    data: params,
  });
}
// 理赔列表
export function CompensationList(params) {
  return request({
    url: `${base}/api/app/compensation/list`,
    method: "post",
    data: params,
  });
}
// 理赔详情
export function CompensationDetail(params) {
  return request({
    url: `${base}/api/app/compensation/detail`,
    method: "post",
    data: params,
  });
}
// 理赔删除
export function CompensationDelete(params) {
  return request({
    url: `${base}/api/app/compensation/delete`,
    method: "post",
    data: params,
  });
}

